			<?php 
				$img = File::model()->generateFilePath(File::model()->findByPk($data->media_pic_id),0);
				
				$pinyin = new PinYin();
				$short = $pinyin->words2PinYin($data->category->cate_name,'utf-8');
				
			?>			
            <div class="one-fourth animation <?php echo $short;?>">
                <a href="<?php echo $this->createUrl('view',array('id'=>$data->media_id));?>" class="project-item">
                    <img src="<?php echo $img;?>" alt="" />
                    <div class="overlay">
                        <h5><?php echo  UtilTools::strSlice($data->media_name,0,8);?></h5>
                        <p><?php echo $data->media_describe;?></p>
                    </div>
                </a>
            </div>	